
window.addEvent('domready', function(){
var scroll = new Fx.Scroll('demo-wrapper', {
	wait: false,
	duration: 2500,
	offset: {'x': -20, 'y': -100},
	transition: Fx.Transitions.Quad.easeInOut
});
 
$('link1').addEvent('click', function(event) {
	event = new Event(event).stop();
	scroll.toElement('content1');
});
 
$('link2').addEvent('click', function(event) {
	event = new Event(event).stop();
	scroll.toElement('content2');
});
 
$('link3').addEvent('click', function(event) {
	event = new Event(event).stop();
	scroll.toElement('content3');
});
 
$('link4').addEvent('click', function(event) {
	event = new Event(event).stop();
	scroll.toElement('content4');
});

});